package com.city.service.pub.impl;

import com.city.domain.city.*;
import com.city.domain.economic.*;
import com.city.domain.party.*;
import com.city.domain.pub.*;
import com.city.domain.supervise.*;
import com.city.repository.city.*;
import com.city.repository.economic.EconomicTypeRepository;
import com.city.repository.economic.EnterpriseAffiliationRepository;
import com.city.repository.economic.EnterpriseRegulatoryClassificationRepository;
import com.city.repository.economic.EnterpriseScaleRepository;
import com.city.repository.party.*;
import com.city.repository.pub.*;
import com.city.repository.supervise.ImpCategoryRepository;
import com.city.repository.supervise.ImpLocationRepository;
import com.city.repository.supervise.ImpOrganizationRepository;
import com.city.repository.supervise.ImpThingRepository;
import com.city.service.city.CityCopnotePersonService;
import com.city.service.pub.SaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @deprecation: 全局数据保存入口
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-19 8:35
 */
@Service
public class SaveServiceImpl implements SaveService {

    @Autowired
    private CityHouseinfoRepository cityHouseinfoRepository;

    @Autowired
    private PubProvinceRepository provinceRepository;

    @Autowired
    private PubCityRepository cityRepository;

    @Autowired
    private PubCountyRepository countyRepository;

    @Autowired
    private PubCountRepository countRepository;

    @Autowired
    private CityTownRepository townRepository;

    @Autowired
    private CityVillageRepository villageRepository;

    @Autowired
    private CityCopnoteMaincontentRepository copnoteMaincontentRepository;

    @Autowired
    private CityCopnoteObjectRepository copnoteObjectRepository;

    @Autowired
    private CityEventCountMethodRepository eventCountMethodRepository;

    @Autowired
    private CityEventSrcnameRepository eventSrcnameRepository;

    @Autowired
    private CityEventTypeRepository eventTypeRepository;

    @Autowired
    private EconomicTypeRepository economicTypeRepository;

    @Autowired
    private EnterpriseAffiliationRepository affiliationRepository;

    @Autowired
    private EnterpriseRegulatoryClassificationRepository classificationRepository;

    @Autowired
    private EnterpriseScaleRepository scaleRepository;

    @Autowired
    private PubArticleTypeRepository articleTypeRepository;

    @Autowired
    private PubArticleRepository articleRepository;

    @Autowired
    private PartyOrelationshipRepository orelationshipRepository;

    @Autowired
    private PartyFahuRepository fahu;

    @Autowired
    private PartyFlowoutRepository partyFlowoutRepository;

    @Autowired
    private PartyFabroadRepository partyFabroadRepository;

    @Autowired
    private PartyFaboradFamilyRepository partyFaboradFamilyRepository;

    @Autowired
    private PartyApplyRepository partyApplyRepository;

    @Autowired
    private ReportPersonRepository reportPersonRepository;

    @Autowired
    private ReportGroupRepository reportGroupRepository;

    @Autowired
    private CityCopnotePersonService copnotePersonService;

    @Autowired
    private PubFilepathRepository filepathRepository;

    @Autowired
    private CityEventRepository eventRepository;

    @Autowired
    private PubHouseinfoRepository pubHouseinfoRepository;

    @Autowired
    private PubKeyPersonRepository keyPersonRepository;

    @Autowired
    private PubUserRepository pubUserRepository;

    @Autowired
    private ImpLocationRepository impLocationRepository;

    @Autowired
    private ImpOrganizationRepository impOrganizationRepository;

    @Autowired
    private ImpThingRepository impThingRepository;

    @Autowired
    private ImpCategoryRepository impCategoryRepository;



    @Override
    public void save(ImpCategory impCategory) { impCategoryRepository.save(impCategory);}


    @Override
    public void save(ImpThing impThing) { impThingRepository.save(impThing);}

    @Override
    public void save(ImpOrganization impOrganization) { impOrganizationRepository.save(impOrganization);}

    @Override
    public void save(ImpLocation impLocation){ impLocationRepository.save(impLocation);}

    @Override
    public void save(CityVillage cityVillage) {
        villageRepository.save(cityVillage);
    }

    @Override
    public void save(CityTown cityTown) {
        townRepository.save(cityTown);
    }

    @Override
    public void save(CityCopnoteObject cityCopnoteObject) {
        copnoteObjectRepository.save(cityCopnoteObject);
    }

    @Override
    public void save(CityCopnoteMaincontent cityCopnoteMaincontent) {
        copnoteMaincontentRepository.save(cityCopnoteMaincontent);
    }

    @Override
    public void save(CityCopnotePerson cityCopnotePerson) {
        copnotePersonService.save(cityCopnotePerson);
    }

    @Override
    public void save(CityEvent cityEvent) {
        eventRepository.save(cityEvent);
    }

    @Override
    public void save(CityEventCountMethod cityEventCountMethod) {
        eventCountMethodRepository.save(cityEventCountMethod);
    }

    @Override
    public void save(CityEventSrcname cityEventSrcname) {
        eventSrcnameRepository.save(cityEventSrcname);
    }

    @Override
    public void save(CityEventStatus cityEventStatus) {

    }

    @Override
    public void save(CityEventType cityEventType) {
        eventTypeRepository.save(cityEventType);
    }

    @Override
    public void save(CityHouseinfo cityHouseinfo) {
        cityHouseinfoRepository.save(cityHouseinfo);
    }

    @Override
    public void save(EconomicType economicType) {
        economicTypeRepository.save(economicType);
    }

    @Override
    public void save(EnterpriseAffiliation enterpriseAffiliation) {
        affiliationRepository.save(enterpriseAffiliation);
    }

    @Override
    public void save(Enterpriseinfo enterpriseinfo) {

    }

    @Override
    public void save(EnterpriseManagementAgency enterpriseManagementAgency) {

    }

    @Override
    public void save(EnterprisePersoncount enterprisePersoncount) {

    }

    @Override
    public void save(EnterpriseRegulatoryClassification enterpriseRegulatoryClassification) {
        classificationRepository.save(enterpriseRegulatoryClassification);
    }

    @Override
    public void save(EnterpriseScale enterpriseScale) {
        scaleRepository.save(enterpriseScale);
    }

    @Override
    public void save(EnterpriseUmagency enterpriseUmagency) {

    }

    @Override
    public void save(EnterpriseUmagencyPerson enterpriseUmagencyPerson) {

    }

    @Override
    public void save(PartyApply partyApply) {
        partyApplyRepository.save(partyApply);
    }

    @Override
    public void save(PartyCadreLevel partyCadreLevel) {

    }

    /**
     **
      *@author:WY
      *@date: 2018/7/20 21:20
      *@description:保存家庭信息
     *
     * @param partyFaboradFamily
     */
    @Override
    public void save(PartyFaboradFamily partyFaboradFamily) {
        partyFaboradFamilyRepository.save(partyFaboradFamily);
    }


    /**
     **
      *@author:WY
      *@date: 2018/7/20 21:19
      *@description:保存时出国信息
     *
     * @param partyFabroad
     */
    @Override
    public void save(PartyFabroad partyFabroad) {
        partyFabroadRepository.save(partyFabroad);
    }

    /**
     **
      *@author:
      *@date: 2018/7/19 11:36
      *@description:保存流动信息
     *
     * @param partyFahu
     */
    @Override
    public void save(PartyFahu partyFahu) {
        fahu.save(partyFahu);
    }

    /**
     * *
      *@author:WY
      *@date: 2018/7/19 14:16
      *@description:流出保存方法
     *
     * @param partyFlowout
     */
    @Override
    public void save(PartyFlowout partyFlowout) {
        partyFlowoutRepository.save(partyFlowout);
    }

    @Override
    public void save(PartyFlowReason partyFlowReason) {

    }

    @Override
    public void save(PartyFlowType partyFlowType) {

    }


    /**
     **
      *@author:WY
      *@date: 2018/7/19 11:37
      *@description:保存关系转入转出申请
     *
     * @param partyOrelationship
     */
    @Override
    public void save(PartyOrelationship partyOrelationship) {
        orelationshipRepository.save(partyOrelationship);
    }

    @Override
    public void save(PartyVideo partyVideo) {

    }

    @Override
    public void save(PartyTalentAppeal partyTalentAppeal) {

    }

    @Override
    public void save(PartyVideoType partyVideoType) {

    }

    @Override
    public void save(PubArticle pubArticle) {
            articleRepository.save(pubArticle);
    }

    @Override
    public void save(PubArticleType pubArticleType) {
        articleTypeRepository.save(pubArticleType);
    }



    @Override
    public void save(PubCity pubCity) {
        cityRepository.save(pubCity);
    }

    @Override
    public void save(PubCounty pubCounty) {
        countyRepository.save(pubCounty);
    }

    @Override
    public void save(PubEducationDegree pubEducationDegree) {

    }

    @Override
    public void save(PubFamilyRelationship pubFamilyRelationship) {

    }

    @Override
    public void save(PubFilepath pubFilepath) {
        filepathRepository.save(pubFilepath);
    }

    @Override
    public void save(PubFiletype pubFiletype) {

    }

    @Override
    public void save(PubHouseFrom pubHouseFrom) {

    }

    @Override
    public void save(PubHouseinfo pubHouseinfo) {
        pubHouseinfoRepository.save(pubHouseinfo);
    }

    @Override
    public void save(PubHouseStructure pubHouseStructure) {

    }

    @Override
    public void save(PubHouseUse pubHouseUse) {

    }

    @Override
    public void save(PubHouseUsebuild pubHouseUsebuild) {

    }

    @Override
    public void save(PubOccupation pubOccupation) {

    }

    @Override
    public void save(PubPoliticalOutlook pubPoliticalOutlook) {

    }

    @Override
    public void save(PubProvince pubProvince) {
        provinceRepository.save(pubProvince);
    }

    @Override
    public void save(PubUser pubUser) {
        pubUserRepository.save(pubUser);

    }

    @Override
    public void save(PubCount pubCount) {
        countRepository.save(pubCount);
    }

    @Override
    public void save(PubIndustryCategory pubIndustryCategory) {

    }

    @Override
    public void save(PubKeyPerson pubKeyPerson) {
        keyPersonRepository.save(pubKeyPerson);
    }


    @Override
    public void save(PubKeyTrajectory pubKeyTrajectory) {

    }

    @Override
    public void save(PubLandCoucher pubLandCoucher) {

    }

    @Override
    public void save(PubLandGet pubLandGet) {

    }

    @Override
    public void save(PubNationCategory pubNationCategory) {

    }

    @Override
    public void save(ReportPerson reportPerson) {
        reportPersonRepository.save(reportPerson);
    }

    @Override
    public void save(ReportGroup reportGroup) {
        reportGroupRepository.save(reportGroup);
    }



}
